package tool

import java.io.File

/**
 * Created by yz on 23/12/2021
 */
object Pojo {

  case class CommandData(workspace: File, commands: List[String], runName: String = "run.sh")

  object CommandData {

    def empty: CommandData = {
      val workspace = new File("")
      val commands: List[String] = List[String]()
      CommandData(workspace, commands)
    }

    def apply(workspace: File, command: String): CommandData = {
      new CommandData(workspace, List(command))
    }

  }

}
